import http from '@/libs/api.request'

export const login = (userName, password) => {
  const data = {
    'username':userName,
    'scope':'admin',
    'password':password
  }
  return http.fetchPost('/oauth/token',data)
}


